//键盘输入n个值，顺序依次建立链表
#include<stdio.h>
#include<stdlib.h>

typedef struct Node
{
    int data;
    struct Node* next;
}Node,*LinkList;

int main(){
    int n;
    scanf("%d",&n);
    int i=0;
    LinkList res = (LinkList)malloc(sizeof(Node));
    Node *head,*s;
    head=(Node*)malloc(sizeof(Node));
    res=head;
    while (i<n)
    {
      int input;
      scanf("%d",&input);
      s=(Node*)malloc(sizeof(Node));
      s->data=input;
      head->next=s;
      head=s;
      i++;
    }
    head->next=NULL;
    printf("res:%d",res->next->data);
    return 0;
}